/**
 * 
 */
package edu.hadassah.prettyprint.doc.xml;

import edu.hadassah.prettyprint.doc.ContentElement;

public class XmlDocumentFactory {

	/**
	 * @param str
	 * @param parent
	 */
	public Text createText(String str, ContentElement parent) {
		return new Text(parent, str);
	}

	/**
	 * @param comment
	 * @param parent
	 */
	public Comment createComment(String comment, ContentElement parent) {
		return new Comment(parent, comment);
	}

	/**
	 * @param aName
	 * @param aValue
	 * @param parent
	 */
	public Attribute createAttribute(String aName, String aValue, ContentElement parent) {
		return new Attribute(parent, aName, aValue);
	}

	/**
	 * @param name
	 * @return
	 */
	public XMLDocument createDocument(Tag root) {
		return new XMLDocument(root);
	}

	/**
	 * @param name
	 * @param parent
	 * @return
	 */
	public Tag createTag(String name, Tag parent) {
		return new Tag(parent, name);
	}
}